/* -----------------
* brief
* 1. this is code gen by tools
* 2. array like [a,b,c] after each field, define the ui html tag in view,
		a for title,
		b for show or not ,
		c for element html tag , currently suppor : check、radio、select、input、textarea、upload tag
* 3. XXX
*/

package system

import "github.com/mjiulee/lego"

func init() {
	lego.AddBeanToSynList(new(SysUser))
}

/* table: "tb_sys_user"
 * -----------------
 */
type SysUser struct {
	Id    int64  `xorm:"pk" json:",string"`                   // ["id","hide","hidden"]
	IfDel string `xorm:"char(1) default 'N'"` // ["deleted","hide","hidden"]
	Cdate string `xorm:"DateTime created"`    // ["create","show","datetime"]
	Udate string `xorm:"DateTime updated"`    // ["update","show","datetime"]
	// add your custom field here
	Account  string `xorm:"varchar(32) notnull"` // ["账号","show","input"]
	Password string `xorm:"varchar(64) notnull"` // ["密码","show","input"]
	Status   int    `xorm:"default 0 "`          // ["状态","show","radio"]
}
